import http from "@/api";

export const GetRoleList = (params: any) => {
  return http.post(`/admin/role/list`, params);
};

export const AddRole = (params: any) => {
  return http.post(`/admin/role/add`, params);
};

export const UpdateRole = (params: any) => {
  return http.post(`/admin/role/update`, params);
};

export const GetRoleDetail = (params: any) => {
  return http.get(`/admin/role/detail`, params);
};

export const deleteRole = (params: any) => {
  return http.get(`/admin/role/delete`, params);
};
export const changeStatusRole = (params: any) => {
  return http.post(`/admin/role/changeStatus`, params);
};
